package com.anb.net;

import com.anb.common.Log;

public class NetObject {

    public NetObject(String alias) {
        setAlias(alias);
    }

    private boolean stop = false;
    public boolean isStop() {
        return stop;
    }

    private String alias;
    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public void stop() {
        stop = true;
        Log.Get().info(getAlias() + " stopped");
    }
}
